import { useFullscreen } from "@vueuse/core";

const { isSupported, isFullscreen, toggle } = useFullscreen();

const toggleScreen = () => {
  if (!isSupported) return window.$message.warning("您的浏览器并不支持全屏！");
  toggle();
};

export { isFullscreen, toggleScreen };
